from youdao.collins import Collins
import pprint


def read_words_from(wfile):

    # words = list()

    with open(wfile, 'r', encoding='utf-8') as wf:

        return wf.readlines()



words = read_words_from('coca20000.txt')

print(len(words))


for w in words[:50]:
    w = w.lower()
    print(w)
    c = Collins(w)    
    pprint.pprint(c.raw_output())